diff --git a/objects/comments.json.php b/objects/comments.json.php
index 95947f948..4c5862693 100644
--- a/objects/comments.json.php
+++ b/objects/comments.json.php
@@ -1,32 +1,32 @@
");
return stripslashes(str_replace($search, $replace, $subject));
}
foreach ($comments as $key => $value) {
$name = User::getNameIdentificationById($value['users_id']);
//$comments[$key]['comment'] = "
";
$comments[$key]['comment'] = '';
$comments[$key]['total_replies'] = Comment::getTotalComments($_GET['video_id'], $comments[$key]['id']);
$comments[$key]['video'] = Video::getVideo($comments[$key]['videos_id']);
unset($comments[$key]['video']['description']);
$comments[$key]['poster'] = Video::getImageFromFilename($comments[$key]['video']['filename']);
$comments[$key]['userCanAdminComment'] = Comment::userCanAdminComment($comments[$key]['id']);
$comments[$key]['userCanEditComment'] = Comment::userCanEditComment($comments[$key]['id']);
}
-echo '{ "current": '.$_POST['current'].',"rowCount": '.$_POST['rowCount'].', "total": '.$total.', "rows":'. json_encode($comments).'}';
+echo '{ "current": '. getCurrentPage().',"rowCount": '. getRowCount().', "total": '.$total.', "rows":'. json_encode($comments).'}';